<div class="progress_small">
  <span class="goal">
<% if (goal == 0) then goal = 0.00000001 end %>
    <%if distance > goal/2%>
      <span class="labels" style="left: 10px;"><%= (distance/goal*10000).to_i.to_f/100 %>%</span>
    <%else%>
      <span class="labels" style="left: 60px;"><%= (distance/goal*10000).to_i.to_f/100 %>%</span>
    <%end%>
    <span class="distance" style="width: <%= percent_complete(distance,goal) %>px;"></span>
  </span>
</div>
